# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=liquidctl
pkgver=1.3.3
pkgrel=1
pkgdesc="Liquid Cooler Control"
url="https://github.com/jonasmalacofilho/liquidctl"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-setuptools py3-docopt py3-usb py3-hidapi"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jonasmalacofilho/liquidctl/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 liquidctl.8 "$pkgdir"/usr/share/man/man8/liquidctl.8
}

sha512sums="85a8e6cfd0eff36c842080539ac2aff9f31b3ff6a0a9a4e23b622a6d3a1ae5d40260b20e4077b064dcbc4c9353d801bab1fd547a72159d745e4081709f68e957  liquidctl-1.3.3.tar.gz"
